package org.chipu.jnids.sce.profile;

public class DateAsNumber extends Number {
	/** In seconds since epoch */
	private final int value;

	public DateAsNumber(int value) {
		if (value < 0)
			throw new IllegalArgumentException("Invalid negative number " + value);
		this.value = value;
	}

	@Override
	public double doubleValue() {
		return value;
	}

	@Override
	public float floatValue() {
		return value;
	}

	@Override
	public int intValue() {
		return value;
	}

	@Override
	public long longValue() {
		return value;
	}

	// public String toSQLDate() {}
}